libxc: correct max_pfn calculation for saving domain
authorJuergen Gross <jgross@suse.com>
Fri, 26 Aug 2016 11:58:55 +0000 (13:58 +0200)
committerWei Liu <wei.liu2@citrix.com>
Tue, 30 Aug 2016 12:43:31 +0000 (13:43 +0100)
commit9daed8321b44c3ca82e412eb130f84e6b6c17dc5
tree9e19bbb32f1dc894b39691835316b0a62ec54ddb
parent81caac0cd0f56b0052a7884e6bd99e3a652ddd59
libxc: correct max_pfn calculation for saving domain

Commit 91e204d37f44913913776d0a89279721694f8b32 ("libxc: try to find
last used pfn when migrating") introduced a bug for the case of a
domain supporting the virtual mapped linear p2m list: the maximum pfn
of the domain calculated from the p2m memory allocation might be too
low.

Correct this.

Reported-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Tested-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/xc_sr_save_x86_pv.c